package cc.dowell.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cc.dowell.mapper.CarouselMapper;
import cc.dowell.pojo.Carousel;
import cc.dowell.service.CarouselService;
import cc.dowell.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl extends ServiceImpl<CarouselMapper, Carousel> implements CarouselService {


    @Autowired
    private CarouselMapper carouselMapper;

    @Override
    public R<?> getCarousel() {
        List<Carousel> carousels = carouselMapper.selectList(null);
        return R.success(carousels);
    }
}